package com.lanou.musicproject.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;

/**
 * Created by dllo on 15/10/22.
 */
public class MusicResult implements Parcelable{

    private long singer_id; // 50530,拼接具体个人歌曲url
    private String singer_name; // 陈奕迅
    private String pic_url; // 歌手图片
    // 又一解析所需实体类 歌手信息
    private long singerId;
    private String name;// 名字, 歌名
    private String brief;// 介绍
    private String area;// 香港HongKong
    private String picUrl;
    private String country;// 中国香港
    private long avatarId;
    private String chineseName; // 陈奕迅
    private String englishName; // Eason Chan
    private String nation; // 汉族
    private String birthPlace; // 出生地,中国香港
    private String career; // 歌手, 演员
    private String school; // 英国金斯顿大学
    private String companyName; // 环球新艺宝唱片
    private String achievements; // 代表作
    private String height; // 1.71米
    private String weight; // 72千克
    private String birthDate; // 1974-07-27

    // 歌手歌曲列表 用到的
    private long songId;
    private String singerName;
    //  name 歌曲名: 十年, singerName 陈奕迅,
    private ArrayList<MusicInfo> auditionList; // 试听列表
    private ArrayList<MusicInfo> urlList; // 下载列表

    public MusicResult() {
    }

    public MusicResult(long singer_id, String singer_name, String pic_url, long singerId, String name, String brief, String area, String country, String picUrl, long avatarId, String chineseName, String englishName, String nation, String birthPlace, String career, String school, String companyName, String achievements, String height, String weight, String birthDate, long songId, String singerName, ArrayList<MusicInfo> auditionList, ArrayList<MusicInfo> urlList) {
        this.singer_id = singer_id;
        this.singer_name = singer_name;
        this.pic_url = pic_url;
        this.singerId = singerId;
        this.name = name;
        this.brief = brief;
        this.area = area;
        this.country = country;
        this.picUrl = picUrl;
        this.avatarId = avatarId;
        this.chineseName = chineseName;
        this.englishName = englishName;
        this.nation = nation;
        this.birthPlace = birthPlace;
        this.career = career;
        this.school = school;
        this.companyName = companyName;
        this.achievements = achievements;
        this.height = height;
        this.weight = weight;
        this.birthDate = birthDate;
        this.songId = songId;
        this.singerName = singerName;
        this.auditionList = auditionList;
        this.urlList = urlList;
    }

    protected MusicResult(Parcel in) {
        singer_id = in.readLong();
        singer_name = in.readString();
        pic_url = in.readString();
        singerId = in.readLong();
        name = in.readString();
        brief = in.readString();
        area = in.readString();
        picUrl = in.readString();
        country = in.readString();
        avatarId = in.readLong();
        chineseName = in.readString();
        englishName = in.readString();
        nation = in.readString();
        birthPlace = in.readString();
        career = in.readString();
        school = in.readString();
        companyName = in.readString();
        achievements = in.readString();
        height = in.readString();
        weight = in.readString();
        birthDate = in.readString();
        songId = in.readLong();
        singerName = in.readString();
        auditionList = in.createTypedArrayList(MusicInfo.CREATOR);
        urlList = in.createTypedArrayList(MusicInfo.CREATOR);
    }

    public static final Creator<MusicResult> CREATOR = new Creator<MusicResult>() {
        @Override
        public MusicResult createFromParcel(Parcel in) {
            return new MusicResult(in);
        }

        @Override
        public MusicResult[] newArray(int size) {
            return new MusicResult[size];
        }
    };

    public long getSinger_id() {
        return singer_id;
    }

    public void setSinger_id(long singer_id) {
        this.singer_id = singer_id;
    }

    public String getSinger_name() {
        return singer_name;
    }

    public void setSinger_name(String singer_name) {
        this.singer_name = singer_name;
    }

    public String getPic_url() {
        return pic_url;
    }

    public void setPic_url(String pic_url) {
        this.pic_url = pic_url;
    }

    public long getSingerId() {
        return singerId;
    }

    public void setSingerId(long singerId) {
        this.singerId = singerId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getBrief() {
        return brief;
    }

    public void setBrief(String brief) {
        this.brief = brief;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getPicUrl() {
        return picUrl;
    }

    public void setPicUrl(String picUrl) {
        this.picUrl = picUrl;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    public long getAvatarId() {
        return avatarId;
    }

    public void setAvatarId(long avatarId) {
        this.avatarId = avatarId;
    }

    public String getChineseName() {
        return chineseName;
    }

    public void setChineseName(String chineseName) {
        this.chineseName = chineseName;
    }

    public String getEnglishName() {
        return englishName;
    }

    public void setEnglishName(String englishName) {
        this.englishName = englishName;
    }

    public String getNation() {
        return nation;
    }

    public void setNation(String nation) {
        this.nation = nation;
    }

    public String getBirthPlace() {
        return birthPlace;
    }

    public void setBirthPlace(String birthPlace) {
        this.birthPlace = birthPlace;
    }

    public String getCareer() {
        return career;
    }

    public void setCareer(String career) {
        this.career = career;
    }

    public String getSchool() {
        return school;
    }

    public void setSchool(String school) {
        this.school = school;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getAchievements() {
        return achievements;
    }

    public void setAchievements(String achievements) {
        this.achievements = achievements;
    }

    public String getHeight() {
        return height;
    }

    public void setHeight(String height) {
        this.height = height;
    }

    public String getWeight() {
        return weight;
    }

    public void setWeight(String weight) {
        this.weight = weight;
    }

    public String getBirthDate() {
        return birthDate;
    }

    public void setBirthDate(String birthDate) {
        this.birthDate = birthDate;
    }

    public long getSongId() {
        return songId;
    }

    public void setSongId(long songId) {
        this.songId = songId;
    }

    public String getSingerName() {
        return singerName;
    }

    public void setSingerName(String singerName) {
        this.singerName = singerName;
    }

    public ArrayList<MusicInfo> getAuditionList() {
        return auditionList;
    }

    public void setAuditionList(ArrayList<MusicInfo> auditionList) {
        this.auditionList = auditionList;
    }

    public ArrayList<MusicInfo> getUrlList() {
        return urlList;
    }

    public void setUrlList(ArrayList<MusicInfo> urlList) {
        this.urlList = urlList;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeLong(singer_id);
        dest.writeString(singer_name);
        dest.writeString(pic_url);
        dest.writeLong(singerId);
        dest.writeString(name);
        dest.writeString(brief);
        dest.writeString(area);
        dest.writeString(picUrl);
        dest.writeString(country);
        dest.writeLong(avatarId);
        dest.writeString(chineseName);
        dest.writeString(englishName);
        dest.writeString(nation);
        dest.writeString(birthPlace);
        dest.writeString(career);
        dest.writeString(school);
        dest.writeString(companyName);
        dest.writeString(achievements);
        dest.writeString(height);
        dest.writeString(weight);
        dest.writeString(birthDate);
        dest.writeLong(songId);
        dest.writeString(singerName);
        dest.writeTypedList(auditionList);
        dest.writeTypedList(urlList);
    }
}
